package com.qf.common.constants;

public enum RedisKeyEnum {
    /**
     * 验证码的key
     */
    KEY_VERIFICATION_CODE("code:%s",600L),
    /**
     * 签到的key
     */
    KEY_SIGN_IN("sign:%s:%s",30*24*3600L)
    ;
    /**
     * 键
     */
    private String key;
    /**
     * 过期时间
     */
    private Long timeout;

    RedisKeyEnum(String key, Long timeout) {
        this.key = key;
        this.timeout = timeout;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getTimeout() {
        return timeout;
    }

    public void setTimeout(Long timeout) {
        this.timeout = timeout;
    }
}
